xen: Last minute rename of RCU domain get/put functions:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 1 Mar 2007 10:32:52 +0000 (10:32 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 1 Mar 2007 10:32:52 +0000 (10:32 +0000)
 find_domain_rcu_lock -> rcu_lock_domain_by_id
 domain_rcu_unlock    -> rcu_unlock_domain
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/domain.c
xen/include/xen/sched.h

index d1ea9a214893e71f261149b883dcadfd32b3e365..551b9f8e235aebd354323208f85bc321a7f3f8de 100644 (file)
@@ -236,7 +236,7 @@ struct domain *get_domain_by_id(domid_t dom)
 }
 
 
-struct domain *find_domain_rcu_lock(domid_t dom)
+struct domain *rcu_lock_domain_by_id(domid_t dom)
 {
     struct domain *d;
 
index 61d228a8a6d7539066fb55310fa08da813a2d3ec..6fb03a807fa71b22b794a560a83bb0764afa8c4d 100644 (file)
@@ -270,16 +270,16 @@ int construct_dom0(
     char *cmdline);
 
 /*
- * find_domain_rcu_lock() is more efficient than get_domain_by_id().
+ * rcu_lock_domain_by_id() is more efficient than get_domain_by_id().
  * This is the preferred function if the returned domain reference
  * is short lived,  but it cannot be used if the domain reference needs 
  * to be kept beyond the current scope (e.g., across a softirq).
- * The returned domain reference must be discarded using domain_rcu_unlock().
+ * The returned domain reference must be discarded using rcu_unlock_domain().
  */
-struct domain *find_domain_rcu_lock(domid_t dom);
+struct domain *rcu_lock_domain_by_id(domid_t dom);
 
-/* Finish a RCU critical region started by find_domain_rcu_lock(). */
-static inline void domain_rcu_unlock(struct domain *d)
+/* Finish a RCU critical region started by rcu_lock_domain_by_id(). */
+static inline void rcu_unlock_domain(struct domain *d)
 {
     rcu_read_unlock(&domlist_read_lock);
 }